<%@page import="helpers.UrlHelper"%>
<%@page import="entities.Article"%>
<%
Article article = (Article) request.getAttribute("article");
String viewUrl = UrlHelper.getServerUrl(request) + "/a/" + article.getAlias();
String delUrl = "";
String serverName = UrlHelper.getDomainServer(request);
if (article != null) {
	delUrl = UrlHelper.getServerUrl(request) + "/remove-article?id=" + article.getId() + "&key=" + article.getAuthKey();
}

%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<% if (article == null) { %>
<h3>Sorry!</h3>
<p>
	This link not exist or removed. Please go to home. Thank.
</p>
<% } else { %>
<h3>Thank you for submit article on <%=serverName %></h3>
<p>
You have been submit article on <%=serverName %> with content:
<br />

<%=article.getContent() %>

<br />
This article url: <br />
<%=viewUrl %>


<br /><br />
If you want to remove this article, please click here or copy this url <br />
<%=delUrl %> 

</p>

<strong> We are reviewing your article, please wait about 4 to 6 hours. Thanks for your patient.</strong>
<% } %>
</body>
</html>